package com.seventh.restaurant.service;

import com.seventh.restaurant.domain.BookingRecord;

import java.util.List;

public interface BookingRecordService {

    //根据id获得一个预约信息
    BookingRecord getOneBookingRecord(Long id) throws Exception;

   //增加一个预约信息
    BookingRecord insertBookingRecord(BookingRecord bookingRecord) throws Exception;

    //取消预约
    BookingRecord cancleBookingRecord(Long id) throws Exception;

    //修改预约信息
    BookingRecord updateBookingRecord(Long id, String peoplenum, String tableno, String arrivaltime, String isarrival, String isover, String recordcancle) throws Exception;

    //根据手机号码查询预约信息
    List<BookingRecord> findBookingRecord(String phonenumber);

    //查询所有预约信息
    List<BookingRecord> findALLBookingRecords(String kind);

    //结束用餐
    BookingRecord endBookingRecord(Long id) throws Exception;

    //开始用餐
    BookingRecord startBookingRecord(Long id) throws Exception;

}


